package com.project.service.impl;

import com.project.service.IManService;
import com.project.service.IMoveService;

import java.util.Arrays;
import java.util.List;

public class ChineseManService implements IManService {
    private String name;
    private IMoveService moveService;
    private int[] array;
    private List list;

    public void setList(List list) {
        this.list = list;
    }

    public void setArray(int[] array) {
        this.array = array;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setMoveService(IMoveService moveService) {
        this.moveService = moveService;
    }

    public void init(){
        System.out.println("初始化组件");
    }

    public void destory(){
        System.out.println("销毁组件");
    }

    @Override
    public void run() {
        System.out.println("奔跑吧，"+this.name);
        this.moveService.move();
        System.out.println(Arrays.toString(this.array));
        System.out.println(this.list);
    }
}
